package com.qfjy.homework.zhangxu;

/**
 * @author: 张旭
 * @date: 30/6/2022 9:36
 * @version: 1.0
 */
public class NullPatternDemo {
    public static void main(String[] args) {

        AbstractCustomer customer1 = CustomerFactory.getCustomer("张三");
        AbstractCustomer customer2 = CustomerFactory.getCustomer("李四");
        AbstractCustomer customer3 = CustomerFactory.getCustomer("王五");
        AbstractCustomer customer4 = CustomerFactory.getCustomer("赵六");

        System.out.println("Customers");
        System.out.println(customer1.getName());
        System.out.println(customer2.getName());
        System.out.println(customer3.getName());
        System.out.println(customer4.getName());
    }
}
